<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="{$site_url}/" />
<!-- Use IE7 mode -->
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7 charset={$charset}" />
<meta http-equiv="Content-Type" content="text/html; charset={$charset}" />
{$page_seo}

<meta name="author" content="ecmall.shopex.cn" />
<meta name="copyright" content="ShopEx Inc. All Rights Reserved" />
<link href="{res file=css/user.css}" rel="stylesheet" type="text/css" />
<link type="text/css" href="{res file=css/top.css}" rel="stylesheet" />
<link type="text/css" href="{res file=css/footer.css}" rel="stylesheet" />
<link type="text/css" href="{res file=css/usertop.css}" rel="stylesheet"  />
<script type="text/javascript">
//<!CDATA[
var SITE_URL = "{$site_url}";
var REAL_SITE_URL = "{$real_site_url}";
var PRICE_FORMAT = '{$price_format}';
//]]>
</script>
<script type="text/javascript" src="index.php?act=jslang"></script>
<script type="text/javascript" src="{lib file=jquery.js}" charset="utf-8"></script>
<script type="text/javascript" src="{lib file=ecmall.js}" charset="utf-8"></script>
<script type="text/javascript" src="{lib file=member.js}" charset="utf-8"></script>
<script type="text/javascript" src="{lib file=select.js}" charset="utf-8"></script>
<!--[if lte IE 6]>
<script type="text/javascript" language="Javascript" src="{lib file=hoverForIE6.js}"></script>
<![endif]-->
<script type="text/javascript">
$(function(){
    $('#left h1 span,h2.title a.fold').click(function(){
        if($(this).hasClass('span_close')){
            $(this).removeClass('span_close');
            $(this).addClass('span_open');
            this.title = 'open';
            closeSubmenu($(this).parent());
        }
        else{
            $(this).removeClass('span_open');
            $(this).addClass('span_close');
            this.title = 'close';
            openSubmenu($(this).parent());
        }
    });

    var span = $("#child_nav");
    span.hover(function(){
        $("#float_layer:not(:animated)").show();
    }, function(){
        $("#float_layer").hide();
    });
});
function closeSubmenu(h1){
    h1.next('ul').css('display', 'none');
}
function openSubmenu(h1){
    h1.next('ul').css('display', '');
}
</script>
{$_head_tags}
</head>
<body>
<div id="site-nav" class="w-full">
   <div class="shoptop w1000 clearfix">
      <div class="login_info">
         {$lang.hello},
         <!--{if !$visitor.user_id}-->
         {$visitor.user_name|escape}
         <a href="{url app=member&act=login&ret_url=$ret_url}">{$lang.login}</a>
         <a href="{url app=member&act=register&ret_url=$ret_url}">{$lang.register}</a>
         <!--{else}-->
         <a href="{url app=member}"><span>{$visitor.user_name|escape}</span></a>
         <a href="{url app=member&act=logout}">{$lang.logout}</a>
         <a href="{url app=message&act=newpm}">{$lang.pm}<!--{if $new_message}-->(<span>{$new_message}</span>)<!--{/if}--></a>
         <!--{/if}-->
      </div>
      <ul class="quick-menu">
        <li class="item">
           <div class="menu iwantbuy">
              <a class="menu-hd" href="{url app=category}">{$lang.i_want_buy}<b></b></a>
              <div class="menu-bd">
                 <div class="menu-bd-panel">
                    <div>
                       <p><a href="{url app=category}">{$lang.gcategory}</a></p>
                       <p><a href="#">大家正在买</a></p>
					   <p><a href="#">品味连连看</a></p>
                    </div>
                 </div>
              </div>
           </div>
         </li>
         <li class="item">
            <div class="menu mytb">
               <a class="menu-hd" href="{url app=member}">我是买家<b></b></a>
               <div class="menu-bd">
                  <div class="menu-bd-panel">
                     <div>
                        <p><a href="{url app=buyer_order}">已买到的宝贝</a></p>
                        <p><a href="{url app=friend}">我的好友</a></p>
                        <p><a href="{url app=my_question}">我的咨询</a></p>
                     </div>
                  </div>
               </div>
            </div>
         </li>
         <li class="item">
            <div class="menu seller-center">
               <a class="menu-hd" href="{url app=member}">卖家中心<b></b></a>
               <div class="menu-bd">
                  <div class="menu-bd-panel">
                     <div>
                        <p><a href="{url app=seller_order}">已卖出的宝贝</a></p>
                        <p><a href="{url app=my_goods}">出售中的宝贝</a></p>
                     </div>
                  </div>
               </div>
            </div>
         </li>
         <li class="service">
            <a href="{url app=article&code=help}">帮助中心</a>
         </li>
         <li class="item">
            <div class="menu mini-cart">
               <a class="ac" href="{url app=cart}">
                  <s></s>购物车<strong>{$cart_goods_kinds}</strong>件<b></b>
               </a>
               <div class="mini-cart-content menu-bd">
                  <dl class="mini-cart-bd">
                     <!--{if $cart_goods_kinds}-->
                     <dt class="mini-cart-hd">最近加入的宝贝：</dt>
                     <!--{foreach from=$carts_top item=cart}-->
                     <dd class="mini-cart-each clearfix" id="cart_goods{$cart.rec_id}">
                        <div class="mini-cart-img">
                           <a href="{url app=goods&id=$cart.goods_id}" target="_top">
                              <img alt="{$cart.goods_name}" src="{$cart.goods_image}" width="40" height="40">
                           </a>
                        </div>
                        <div class="mini-cart-title">
                           <a title="{$cart.goods_name}" href="{url app=goods&id=$cart.goods_id}" target="_top">{$cart.goods_name}</a>
                        </div>
                        <div class="price-admin">
                           <div class="mini-cart-count"><strong class="mini-cart-price">{$cart.price|price}</strong></div>
                           <div class="mini-cart-del"><a href="javascript:;" onclick="drop_cart_item({$cart.store_id}, {$cart.rec_id});">删除</a></div>
                        </div>
                     </dd>
                     <!--{/foreach}-->
                     <!--{else}-->
                     <dt class="mt10 fleft mini-cart-empty">您购物车里还没有任何宝贝</dt>
                     <!--{/if}-->
                     <dd class="mini-cart-bt">
                        <a href="{url app=cart}">查看我的购物车</a>
                     </dd>                          
                  </dl>
               </div>
            </div>
         </li>
         <li class="item">
            <div class="menu favorite">
               <a class="menu-hd" href="{url app=my_favorite}">收藏夹<b></b></a>
               <div class="menu-bd">
                  <div class="menu-bd-panel">
                     <div>
                       <p><a href="{url app=my_favorite}">收藏的宝贝</a></p>
                       <p><a href="{url app=my_favorite&type=store}">收藏的店铺</a></p>
                    </div>
                 </div>
               </div>
           </div>
         </li>
         <li class="item" style="background:none">
            <div class="menu sites">
               <a class="menu-hd" href="javascript:;">网站导航<b></b></a>
               <div class="menu-bd padding10">
                  <!--{foreach from=$navs.header item=nav}-->
                  <a href="{$nav.link}"{if $nav.open_new} target="_blank"{/if}>{$nav.title|escape}</a>
                  <!--{/foreach}-->
               </div>
            </div>
        </li>
     </ul>
   </div>
</div>
<div id="header" class="w1000 clearfix">
	<div title="{$site_title}" class="logo"><a href="index.php"><img src="{$site_logo}"></a></div>
    <div class="search">
        <div class="search-box">
            <form method="GET" action="{url app=search}">
                <div class="border">
                    <div class="select_js">
                        <p>{$lang.search_goods}</p>
                        <div class="ico"></div>
                        <ul>
                            <li ectype="index">{$lang.search_goods}</li>
                            <li ectype="store">{$lang.search_store}</li>
                            <li ectype="groupbuy">{$lang.search_groupbuy}</li>
                        </ul>
                        <input type="hidden" name="act" value="index" />
                    </div>
                    <input type="text" name="keyword" class="search-input" />
                </div>
                <input type="hidden" name="app" value="search" />
                <input type="submit" name="Submit" value="{$lang.search}" class="search-btn"/>
            </form>
        </div>
        <div class="hot-word">
			{$lang.hot_search}:
            <!--{foreach from=$hot_keywords item=keyword}-->
            <a href="{url app=search&keyword=$keyword}">{$keyword}</a>
            <!--{/foreach}-->
        </div>
    </div>
</div>
<div id="nav">
	<div class="w1000 nav">
    	 <!--{if !$index}-->
         <script type="text/javascript">
		 	$(function(){
				$("#allsort").hover(function(){
					$("#allsort i").addClass("ihover");
					$("#allsort-list").css("display","block");
				},function(){
					$("#allsort i").removeClass("ihover");
					$("#allsort-list").css("display","none");
				});
			});
		 </script>
         	<div id="allsort">
            	<h3>
                	<a target="_blank" href="{url app=category}">{$lang.all_cate}</a>
					<i></i>
                </h3>
                <div class="category" id="allsort-list">
               <div class="content">
                  <!-- {foreach from=$gcates item=category name=fe_gcate} -->
                  <div class="item">
                      <h2><a target="_blank" href="{url app=search&cate_id=$category.id}"><i></i>{$category.value|escape}</a><div class="up"></div></h2>
                      <div class="out">
                          <div class="subcategory">
                                <!-- {foreach from=$category.children item=child name=fe_children} -->
                                <dl class="clearfix" {if $smarty.foreach.fe_children.first} style=" border:none;"{/if}>
                                    <dt><a style="border:none;" title="{$child.value|escape}" target="_blank" href="{url app=search&cate_id=$child.id}"><strong>{$child.value|escape}</strong></a></dt>
                                    <dd>
                                   <!-- {foreach from=$child.children item=child2 name=fe_child2} -->
                                   <a target="_blank" {if $smarty.foreach.fe_child2.last} class="nbd" {/if} title="{$child2.value}" href="{url app=search&cate_id=$child2.id}">{$child2.value|escape}</a>
                                   <!--{/foreach}-->
                                       &nbsp;
                                    </dd>
                                </dl>
                                <!--{/foreach}-->
                          </div>
                      </div>
                  </div>
                  <!--{/foreach}-->
                </div>
            </div>
            </div>
          <!--{else}-->
          <div id="allsort">
            	<h3>
                	<a target="_blank" href="{url app=category}">所有商品分类</a>
                </h3>
          </div>
         <!--{/if}-->
         <ul>
            <li><a class="{if $index}on{else}{/if}" href="index.php" >首页</a></li>
            <!--{foreach from=$navs.middle item=nav}-->
            	<li><a class="{if !$index and $nav.link eq $current_url}on{else}{/if}" href="{$nav.link}"{if $nav.open_new} target="_blank"{/if}>{$nav.title|escape}</a></li>
    		<!--{/foreach}-->
        </ul>
        <div class="myCart">
            <div class="goodsNum">
            	<span class="tTitle">{$lang.cart}: <strong>{$cart_goods_kinds}</strong>{$lang.jian}</span>
            </div>
            <p class="navPay"><a href="{url app=cart}">{$lang.go_to_pay}</a></p>
        </div>
	</div>
</div>
